package com.google.android.gms.maps.model;

import android.os.IBinder;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.dynamic.d.a;
import com.google.android.gms.maps.internal.v;

public final class GroundOverlayOptions implements SafeParcelable {
    public static final GroundOverlayOptionsCreator CREATOR = new GroundOverlayOptionsCreator();
    private BitmapDescriptor aaA;
    private LatLng aaB;
    private float aaC;
    private float aaD;
    private LatLngBounds aaE;
    private float aaF;
    private float aaG;
    private float aaH;
    private float aaq;
    private float aax;
    private boolean aay;
    private final int xM;

    public GroundOverlayOptions() {
        this.aay = true;
        this.aaF = 0.0f;
        this.aaG = 0.5f;
        this.aaH = 0.5f;
        this.xM = 1;
    }

    GroundOverlayOptions(int versionCode, IBinder wrappedImage, LatLng location, float width, float height, LatLngBounds bounds, float bearing, float zIndex, boolean visible, float transparency, float anchorU, float anchorV) {
        this.aay = true;
        this.aaF = 0.0f;
        this.aaG = 0.5f;
        this.aaH = 0.5f;
        this.xM = versionCode;
        this.aaA = new BitmapDescriptor(a.ag(wrappedImage));
        this.aaB = location;
        this.aaC = width;
        this.aaD = height;
        this.aaE = bounds;
        this.aaq = bearing;
        this.aax = zIndex;
        this.aay = visible;
        this.aaF = transparency;
        this.aaG = anchorU;
        this.aaH = anchorV;
    }

    public int describeContents() {
        return 0;
    }

    public float getAnchorU() {
        return this.aaG;
    }

    public float getAnchorV() {
        return this.aaH;
    }

    public float getBearing() {
        return this.aaq;
    }

    public LatLngBounds getBounds() {
        return this.aaE;
    }

    public float getHeight() {
        return this.aaD;
    }

    public LatLng getLocation() {
        return this.aaB;
    }

    public float getTransparency() {
        return this.aaF;
    }

    int getVersionCode() {
        return this.xM;
    }

    public float getWidth() {
        return this.aaC;
    }

    public float getZIndex() {
        return this.aax;
    }

    public boolean isVisible() {
        return this.aay;
    }

    IBinder jN() {
        return this.aaA.jn().asBinder();
    }

    public void writeToParcel(Parcel out, int flags) {
        if (v.jL()) {
            c.a(this, out, flags);
        } else {
            GroundOverlayOptionsCreator.a(this, out, flags);
        }
    }
}
